@import "mixin";
.sku-model {
  position: relative;
  .close-img {
    position: absolute;
    right: 0;
    top: -8px;
  }
  .goods-img {
    width: 280px;
    height: 280px;
    border-radius: 8px;
    border: 1px solid #F4F4F4;
    margin-right: 20px;
  }
  .sku-info .label-new {
    vertical-align: text-top;
    margin-left: 5px;
  }
  .sku-group-item {
    display: flex;
    align-items: baseline;
    &-name {
      min-width: 80px;
      text-align: right;
    }
    .number-control {
      @include number-control();
    }
  }
  .sku-group-item-content {
    display: flex;
    flex: 1;
    flex-wrap: wrap;
    .item {
      height: 26px;
      line-height: 26px;
      margin: 5px 10px 5px 0;
      cursor: pointer;
      display: flex;
      align-items: stretch;
      &.disabled {
        opacity: .5;
        color: #ccc;
        cursor: not-allowed;
      }
      .sku-name {
        border: 1px solid #F2F3F5;
        border-radius: 4px;
        padding: 0 13px;
      }
      &.seasoning-item {
        border-top-right-radius: 0;
        border-bottom-right-radius: 0;
        display: flex;
        padding-right: 0;
        border-right: 0;
        font-size: 13px;
        color: #565656;
        .sku-name {
          border-top-right-radius: 0;
          border-bottom-right-radius: 0;
        }
        .sku-price {
          border-top-right-radius: 4px;
          border-bottom-right-radius: 4px;
          padding: 0 7px 0 5px;
          border: 1px solid #F2F3F5;
          border-left: 0;
          text-align: center;
          flex: 1;
          color: $-color-brown;
        }
      }

      &.active {
        .sku-name, .sku-price {
          color: $-color-brown;
          @include background_color(1, 'minor_color');
          @include border_color();
        }
      }
    }
  }
  .sku-footer {
    .price {
      @include price($-color-brown, 24, 16);
    }
    .line-price {
      position: relative;
      &:before {
        content: "";
        width: 100%;
        height: 1px;
        background: #969696;
        position: absolute;
      }
      span {
        @include price(#565656, 20, 12);
      }
    }
    .add-cart, .buy {
      width: 96px;
    }
    .add-cart {
      background: $-color-brown;
      border-color: $-color-brown;
      color: #fff;
      margin-right: 10px;
    }
    .buy {
      @include background_color();
      @include border_color();
    }
  }
  .package-box {
    border-radius: 8px;
    border: 1px solid #E6E6E6;
    padding: 14px 12px 0 12px;
    margin-top: 16px;
    &-head {
      @include flex_between;
      .label {
        img {
          width: 20px;
          height: 20px;
          vertical-align: -3px;
          margin-right: 4px;
        }
        font-size: 16px;
        font-weight: bold;
      }
      .package-tabs {
        display: flex;
        align-items: center;
        .item {
          height: 24px;
          line-height: 24px;
          padding: 0 12px;
          background: #FFFFFF;
          border-radius: 4px 4px 4px 4px;
          border: 1px solid #E6E6E6;
          font-size: 12px;
          text-align: center;
          margin-left: 12px;
          cursor: pointer;
          &.active {
            @include background_color();
            @include border_color();
            color: #1A1A1A;
            font-weight: bold;
          }
        }
      }
    }
    &-body {
      @include flex_between;
      align-items: stretch;
      margin-top: 13px;
      .package-list-box {
        flex: 1;
        display: flex;
        overflow: auto;
        padding-bottom: 14px;
        &::-webkit-scrollbar {
          height: 4px;
        }
        .package-list {
          display: flex;
          .item-box {
            text-align: center;
            margin-right: 22px;
            position: relative;
            display: flex;
            align-items: center;
            .item {
              background: #F7F7F7;
              border-radius: 8px;
              padding: 6px;
              font-size: 12px;
              .img {
                position: relative;
                .img-main {
                  position: absolute;
                  top: 0;
                  right: 0;
                  width: 20px;
                  height: 20px;
                }
              }
              .price-label {
                @include flex_center;
                .price {
                  @include price($-color-orange, 14, 10)
                }
                .ot-price {
                  text-decoration: line-through;
                  color: #999;
                  margin-left: 5px;
                }
              }
            }
            .plus {
              @include icon_plus_minus(20, 100%);
              margin-left: 22px;
              cursor: auto;
            }
          }
        }
      }
      .handle {
        width: 168px;
        text-align: center;
        line-height: 25px;
        flex-direction: column;
        justify-content: center;
        position: relative;
        padding-bottom: 14px;
        &:after {
          content: "";
          position: absolute;
          left: 0;
          top: 50%;
          transform: translateY(-50%);
          height: 120px;
          border: .5px solid #f4f4f4;
        }
        .h-item {
          line-height: 26px;
          .price {
            @include price($-color-orange, 24, 16);
          }
          &.line-price {
            text-decoration: line-through;
            color: #999;
          }
          .buy-btn, .add-cart-btn {
            width: 88px;
            height: 32px;
            line-height: 32px;
            text-align: center;
            border-radius: 4px;
            margin: 0 auto;
            cursor: pointer;
          }
          .buy-btn {
            @include background_color();
            color: #1A1A1A;
            margin: 2px auto 8px;
          }
          .add-cart-btn {
            background: $-color-brown;
            color: #fff;
          }
        }
      }
    }
  }
}
